const router = require('koa-router')();
const chatController = require('./../controllers/chat.controller');

router.prefix('/chat');

// 获取聊天人员的id
router.get('/senders', chatController.getSenders);
// 获取聊天室id
router.get('/room', chatController.getRoom);
// 添加聊天记录
router.post('/message', chatController.addMessage);
// 获取聊天记录
router.get('/message', chatController.getMessage);
// 修改聊天记录状态
router.post('/change', chatController.modifyMessageStates);

module.exports = router